// 设置组件测试
/// <reference types="vitest/config" />

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
import basicSsl from '@vitejs/plugin-basic-ssl'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    // basicSsl({
    //   /** name of certification */
    //   name: 'trident',
    //   /** custom trust domains */
    //   domains: ['*.itrident.cn'],
    //   /** custom certification directory */
    //   certDir: 'D:/trident_project/trident-easychat-ts/cert'
    // })
  ],

  // 设置组件测试
  test: {
    environment: 'happy-dom'
  },

  // 配置路径别名
  resolve: {
    alias: {
      "@": path.resolve(__dirname, 'src')
    }
  },

  server: {
    // https: true,
  }
})
